package cn.edu.scau.cmi.tangqingning.hibernate;

import java.util.Set;

/**
 * Teacher entity. @author MyEclipse Persistence Tools
 */
public class Teacher extends AbstractTeacher implements java.io.Serializable {

	// Constructors

	/** default constructor */
	public Teacher() {
	}

	/** minimal constructor */
	public Teacher(String name) {
		super(name);
	}

	public Teacher(Integer id, String name){
		super(name);
		super.setId(id);
	}

	/** full constructor */
	public Teacher(String name, Set students, Integer id) {
		super(name, students, id);
	}

	@Override
	public String toString(){
		return getId() + " " + getName();
	}
}
